package mk.jug.academy.exception;

/**
 * An unchecked (unrecoverable) exception,
 * signaling that an erroneous event related to
 * the business workflow/logic of the application.
 * 
 * This is not an 'error' of the system, rather an
 * information about an 'illegal' operation in the
 * context of the business workflow/logic.
 *
 * @author Ice.Penov
 */
public class BusinessException extends RuntimeException {

	private static final long serialVersionUID = 7665264176483357695L;
	
	private String errorCode;
	
	public BusinessException() {
	}
		
	public BusinessException(String errorCode) {
		this.errorCode = errorCode;
	}
	
	/**
	 * Returns the errorCode.
	 */
	public String getErrorCode() {
		return errorCode;
	}	
	
}
